package com.acme.bankapp.service.bank;

import com.acme.bankapp.domain.bank.Account;

/**
 * Abstract class which represents common field and methods
 * of any account
 * 
 * @author render1980
 *
 */
public abstract class AbstractAccount implements Account{
	protected int id;
	protected double balance;

	public AbstractAccount(final double amount) {
		this.balance = amount;
	}
	
	public double getBalance() {
		return this.balance;
	}
	
	public void deposit(double x) {
		this.balance += x;
	}
	
	public abstract void withdraw(final double amount);
	public abstract double maximumAmountToWithdraw();
}
